package com.fw;

import com.fw.aop.Before;
import com.fw.core.Controller;

public class WelComeController extends Controller{
	
	public void index(String user, String url, String name){
		setAttr("user", "default");
		setAttr("url", "default");
		setAttr("name", "default");
		render("welcome.ftl");
	}

	@Before({WelComeInterceptor.class})
	public void welcome(){
		System.out.println("================");
		System.out.println(getPara("user"));
		System.out.println(getPara("url"));
		System.out.println(getPara("name"));
		System.out.println("================");
		setAttr("user", getPara("user"));
		setAttr("url", getPara("url"));
		setAttr("name", getPara("name"));
		render("welcome.ftl");
	}

}
